package com.codegero.android.client.sms.gateway;

import com.codegero.android.client.sms.gateway.boundary.DaftarRegistryVote;
import com.codegero.android.client.sms.gateway.boundary.DaftarResponse;
import com.codegero.android.client.sms.gateway.boundary.KirimPesan;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

public class SMSGateway extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_menu);
        ImageView ivSendBroadcast = (ImageView) findViewById(R.id.kirimSms);
        ivSendBroadcast.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(SMSGateway.this, KirimPesan.class);
				startActivity(intent);
			}
		});
        ImageView ivResponse = (ImageView) findViewById(R.id.response);
        ivResponse.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(SMSGateway.this, DaftarResponse.class);
				startActivity(intent);
			}
		});
        ImageView ivPeople = (ImageView) findViewById(R.id.orang);
        ImageView ivVote = (ImageView) findViewById(R.id.vote);
        ivVote.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(SMSGateway.this, DaftarRegistryVote.class);
				startActivity(intent);
			}
		});
    }
}